#ifndef SYSTEM_H
#define SYSTEM_H

#include <QWidget>
#include <QTcpServer>
#include <QTcpSocket>

namespace Ui
{
class System;
}

class System : public QWidget
{
    Q_OBJECT

public:
    explicit System(QWidget* parent = nullptr);
    ~System();
private slots:
    void newConnection_Slot();
    void readyRead_Slot();
    void on_pushButtonAdmin_clicked();

    void on_pushButtonWenjuan_clicked();

private:
    Ui::System* ui;
    QTcpServer* m_tcpserver;
    QTcpSocket* m_tcpsocket;
};

#endif // SYSTEM_H
